<template>
<div>
    <div class="test" @click="test">测试按钮</div>
</div>
</template>

<script>
	export default {
		
		data() {
			return {
			
			}
		},
		mounted() {
            // 浏览事件埋点
			window.sensors.quick('autoTrack',{ 
                class_code: 'web_page_browse',
                class_name: 'web页面浏览',
                event_code: 'eventpage',
                event_name: '落地页浏览',
                event_page: '落地页',
                activity_channel_id: '',
                utm_source: 'gjgg',
                utn_medium: 'kjhh',
                utm_term: 'jkbh',
                utm_campaign: 'mnjkk',
                utm_content: 'jhkjhjjj'
            });
		},
		methods: {
            test() {
                console.log(999)
                // 点击事件埋点
                console.log(window.sensors.track)
                window.sensors.track('web_element_click', {
                        class_code: 'web_element_click',
                        class_name: 'web元素点击',
                        event_code: 'eventpage_submit',
                        event_name: '落地页马上提交按钮',
                        event_page: '落地页',
                        event_position: '马上提交',
                        event_type: 'div',
                        event_link_url: ''
                });
            }
		}
	}
</script>

<style>
.test {
    width: 100px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #000;
    text-align: center;
}
</style>